package chapter5_stack_and_linked;

/**
 * @author yuh
 * @date 2018/4/12 13:46
 * @description
 */
public class TwoTupleCompare<A extends Comparable, B extends Comparable> implements Comparable<TwoTupleCompare> {

    A a;
    B b;

    public TwoTupleCompare(A a, B b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public int compareTo(TwoTupleCompare o) {
        return 0 - this.b.compareTo(o.b);
    }
}
